package com.nuoniu.sibanyun.entity.crm;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 客户商品表
 * </p>
 *
 * @author baiqiang
 * @since 2020-07-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("crm_goods")
@ApiModel(value="CrmGoods对象", description="客户商品表")
public class CrmGoods extends BaseEntity {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "商品分类 软件 software 话费 telCharges")
    @TableField("goods_type")
    private String goodsType;

    @ApiModelProperty(value = "角色id")
    @TableField("role_id")
    private Integer roleId;

    @ApiModelProperty(value = "角色名称")
    @TableField("role_name")
    private String roleName;

    @ApiModelProperty(value = "商品名称")
    @TableField("goods_name")
    private String goodsName;

    @ApiModelProperty(value = "用户数")
    @TableField("users")
    private Integer users;

    @ApiModelProperty(value = "服务年限")
    @TableField("years")
    private Integer years;

    @ApiModelProperty(value = "单价")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty(value = "折扣率")
    @TableField("discount_rate")
    private Integer discountRate;

    @ApiModelProperty(value = "出售价格")
    @TableField("sale_price")
    private BigDecimal salePrice;

    @ApiModelProperty(value = "版本号")
    @TableField("version_code")
    private String versionCode;

    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "版权信息")
    @TableField("copyright")
    private String copyright;

    @ApiModelProperty(value = "logo地址")
    @TableField(value = "goods_logo_url")
    private String goodsLogoUrl;

    @ApiModelProperty(value = "0正常1删除2停用")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_date")
    private LocalDateTime updateDate;

    @ApiModelProperty(value = "推广一级奖励")
    @TableField("first_reward")
    private Integer firstReward;

    @ApiModelProperty(value = "推广二级奖励")
    @TableField("second_reward")
    private Integer secondReward;

    @ApiModelProperty(value = "推广三级奖励")
    @TableField("third_reward")
    private Integer thirdReward;

    @ApiModelProperty(value = "推广四级奖励")
    @TableField("fourth_reward")
    private Integer fourthReward;

    @ApiModelProperty(value = "提现额度")
    @TableField("withdrawal_limit")
    private Integer withdrawalLimit;

    @ApiModelProperty(value = "是否开启推广奖励(1开启 0关闭)")
    @TableField("is_reward")
    private Boolean isReward;

    @ApiModelProperty(value = "推广方法")
    @TableField("extension_method")
    private String extensionMethod;

    @ApiModelProperty(value = "佣金规则")
    @TableField("commission_rules")
    private String commissionRules;

}
